<template>
	<view>
		<view class="bottom-flex-action-h">
			
			<view class="bottom-flex-action" :class="color?'bgColor':''" @click="click" :style="'z-index:'+zindex">
				<slot></slot>
			</view>
			
		</view>
		
	</view>
</template>

<script>
	export default {
		data() {
			return {
				
			};
		},
		props: {
			zindex:"",
			bgColor:'',
			color:false
			 
		},
		methods:{
			click(){
				this.$emit("click")
				
			}
		}
	}
</script>
<style lang="scss">
	.bgColor{
		background: linear-gradient(135deg, #FF748E 0%, #FF2B52 100%)!important;
	}
	.bottom-flex-action-h{
		height: 140upx;
		padding-bottom: constant(safe-area-inset-bottom) ; padding-bottom: env(safe-area-inset-bottom);
		
		.bottom-flex-action{
			display: flex;
			justify-content: center;
			align-items: center;
			border-top:#E4E7EF solid 1upx;text-align: center; font-size: 36upx; color:#303133;
			line-height: 120upx;
			width:100%;
			height: 120upx;
			position: fixed;
			box-sizing: content-box;
			bottom: var(--window-bottom);
			// background: #fff;
			border-bottom: constant(safe-area-inset-bottom) solid #fff; border-bottom: env(safe-area-inset-bottom) solid #fff;
			z-index: 1000;
			// font-size: 36rpx;
			font-family: PingFangSC-Semibold, PingFang SC;
			font-weight:500;
			color: #FFFFFF;
		    &.red{
				background: $uni-main-color;
				color:#fff;
			}
			
			&.gray{
				background: #aaa;
				color:#fff;
			}
			
			
			
		}
		
		
		
	}
	

</style>
